import { Injectable, NestMiddleware, LoggerService } from '@nestjs/common';
import { Request, Response } from 'express';

@Injectable()
export class LoggerMiddleware implements NestMiddleware {

  use(req: Request, res: Response, next: Function) {
    console.log(`[${req.method}]`, req.url);
    next();
  }
}
